import request from '@/utils/request'
interface pageConf {
  num: string | number;
  page: string | number;
}
// 查询订单状态
export const getStates = () => request.get(`/community/house_bill/?state_values=1`)

// 查询全部账单
export const getAllBills = (params:pageConf) => {
    return request.get(`/community/house_bill/?page=${params.page}&num=${params.num}`);
  
}

// 根据状态查询订单
export const getBillsByState = (params:any) => request.get(`/community/house_bill/?state=${params.state}&page=${params.page}&num=${params.num}`)

// 根据房屋查询缴费信息
export const getBillsByHouse = (params:any) => request.get(`/community/house_bill/?house_uuid=${params.uuid}&page=${params.page}&num=${params.num}`)

// 删除订单信息
export const deleteBills  = (data: any) => request.delete('community/house_bill/', { data: data })
